import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:flutter_form_builder/flutter_form_builder.dart';

class LoginFormState implements Cloneable<LoginFormState> {
  bool submitting;

  GlobalKey<FormBuilderState> formKey;
  TextEditingController usernameController;
  TextEditingController passwordController;

  LoginFormState(
      {this.formKey, this.usernameController, this.passwordController, this.submitting = false});

  @override
  LoginFormState clone() {
    return LoginFormState(
      formKey: this.formKey,
      usernameController: this.usernameController,
      passwordController: this.passwordController,
      submitting: this.submitting,
    );
  }
}

LoginFormState initState(Map<String, dynamic> args) {
  return LoginFormState();
}
